/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.model;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 * @author sammael
 */
public class PlayerDataModel {

    private final SimpleStringProperty name;
    private final SimpleIntegerProperty id;
    private final SimpleIntegerProperty credit;
    private final SimpleStringProperty action;

    public PlayerDataModel(String name, int id, int credits) {
        this.name = new SimpleStringProperty(name);
        this.id = new SimpleIntegerProperty(id);
        this.credit = new SimpleIntegerProperty(credits);
        this.action = new SimpleStringProperty("wykonuje ruch");
    }
    public SimpleStringProperty nameProperty(){
        return name;
    }
    public SimpleIntegerProperty idProperty(){
        return id;
    }
    public SimpleIntegerProperty creditProperty(){
        return credit;
    }
    public SimpleStringProperty actionProperty(){
        return action;
    }
    public void setName(String name) {
        this.name.set(name);
    }

    public String getName() {
        return this.name.get();
    }

    public void setId(int id) {
        this.id.set(id);
    }

    public int getId() {
        return this.id.get();
    }

    public void setCredit(int credit) {
        this.credit.set(credit);
    }

    public int getCredit() {
        return this.credit.get();
    }

    public String getAction() {

        return action.get();
        
    }
    
    public void setAction(String act){
        action.set(act);
    }
}
